Updated cygwin code