fix compilation on cygwin