detect msys2 as WINNT
fix issue where we couldn't serialize Base after more aggresive
inlining, apparently because of an anonymous method with a closure in the wrong Base module