The -mno-cygwin gcc option is now deprecated so my first patch adds linking options instead. The second one forces use_msvcrt to true as we need it because of __wargv in mingw_unicode_hack()