Fix warnings when compiling with a recent MSVC.