Fixed build errors for x86_64 target under Windows 8.