Fix for MSVC compilation errors.