Suppressing MSVC warnings; patch thanks to Peng Cheng!