Fix MSVC W3 compiler warnings