Fix csharp builds for MSVC71