Fix cygwin compilation error