Fix warnings generated by MSVC.