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

do you want to keep this comment :)
this allows other modules like hw decoders to hook into windowing and get events about lost display i.e. when we switch refresh rate