fix MSVC warnings