dynamically test x11 and wl at runtime