fix cygwin compilation