Better fix for glib builds in Cygwin