Disable useless warnings when compiling with MSVC.