Don't crash with glib >= 2.41