Craig's patch to remove the checks for windows.h and instead check for _strtoi64 explicitly, and avoid using snprintf() at all.