ENH: improvements for Cygwin build