Port to cygwin