rest: added gir build option; cross build support.