Check that Cairo is installed in configure.ac again

This was removed accidently in PR #18.