Fixed MSVC warnings.