Fix MSVC warnings