Don't define writemime on PNG if Cairo isn't installed. (Fixes #187)