[sgen] Add minimal mingw64 support.