Cygwin compatibility bugfix