fix some integer data types and/or quiet some MSVC warnings