Migrated Cygwin support

Untested (and no unit-tests either).