gdl: added gir build option and cross build support.