xims: use GTK/GDK most of the time instead of X11, which makes a lot of things easier