fix linkage on glib <2.17