add glib >= 2.40 fix (from arch)