Port to Wayland EGL

Port from X11 to Wayland EGL.