Support older versions of glib in client