fixes for cygwin64