Fix compilation with < glib 2.32