Add core context support to X/EGL and KMS/EGL.