fix for glib 2.36