another series of cygwin fixes