fixes for cygwin under windows