fixed some bugs in Windows build and bring up some .NET interop projects again to work