Fix MSVC compiler warnings