fix some msvc warnings