few cygwin fixes