Fixed a few MSVC warnings.