[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.

Your're right. This should do the trick.

#if (defined(HAS_GLX) || defined(HAS_EGL)) && defined(HAVE_X11)