Fix glib builds in Cygwin