Fix compilation in cygwin