1) Link with EGL and wayland-egl libraries (with check for GDK Wayland). 2) Provide a way to force disable the EGL backend.