sgen support for windows/msvc and better exception handling

These commits fix the SGen build on Windows and MSVC. All GC tests passed.
Also it includes a better exception handling that permits a native debugger to be attached while using the soft debugger.