Cygwin compilation fix