Fix MSVC compilation errors.