older glib compat fix