Move X11 specific stuff into input.c, prepping for native Wayland support some time.
Add GDK platform support check.
Put the backend check into the backend specific file.