Fix x64 build integer conversion warnings.