fix VC++ x64 conversion warnings