cairo: enable EGL only if opengl or gles2 option is set.