wip: egl/main: Implement eglGetPlatformDisplayEXT for X11, Wayland, GBM

This complets the following extensions:
    EGL_EXT_platform_base
    EGL_EXT_platform_x11
    EGL_EXT_platform_wayland
    EGL_MESA_platform_gbm