Fix msvc warnings