some cygwin fixes