Only run cairo-specific tests when cairo is used.