Cygwin's mangling by Felix Buenemann <atmosfear@users.sourceforge.net>