fix build under cygwin