fixes for cygwin installations