Attempt to fix msvc warnings.