Attempt to facilitate cygwin compilation.

Graham Douglas report.