fixed type conversion warnings emitted by msvc 12.0 for 64-bit builds