fix msvc warnings