Fixed issues with bad Cygwin conditions on non-windows system