Corrected a number of warnings on Windows.