corrected compile on cygwin