updating for cygwin support