Fix compilation on Cygwin/Linux