Update glamor_gles2 switching mechanism.
Copy glamor-related files from Xephyr.