Properly guard X11 code paths and fix X11 requirements
This avoids warnings from keybinder on Wayland and allows to build the plugin without X11 support.
This avoids warnings from keybinder on Wayland and allows to build the plugin without X11 support.