Fix warnings in MSVC