cairo: allow glib support without x