Fix warnings on MSVC