Fix MSVC 64-bit warnings