allow for cairocffi imports

Backport from master to allow cairocffi as a drop-in replacement for pycairo.

Fix for #825