cygwin compatible fix