MSVCRT and Win64 related fixes.