msvc adaptions