Adapt to cairo changes Adapt to the api in the cairo MR that will be used, and make the code build with older cairo.