configure: improve GLIB check