Reworking cygwin and mingw32