Fixes for MSVC errors.