Fix compiling on Cygwin