Fixed MSVC errors.