fix usage of json-glib with our minimal version of glib