Fix compilation when Cairo is not present
Merge pull request #1094 from jtanx/nocairo

Fix compilation when Cairo is not present