fixed compile for glib-2.28