json-glib: added gir build option; cross build support.