Fixed MSVC 64-bit warnings.