Fix MSVC compilation warnings