Fix LIB_DEPEND on json-glib.

Taken from: MC