Made CAIRO_FORMAT_RGB30 optional to support outdated versions of Cairo

Fixes #312 and #314.