[X11] Add support for EGL/GLESv2 when using X11

This adds EGL/GLESv2 support to the new X11 backend which doesn't use SDL anymore.

how does this work. as far as I can see HAS_GLX is always defined if HAVE_X11 is defined.