Fix compiling under CYGWIN