Fix warnings with MSVC