Fix some MSVC warnings