This is to avoid including Xlib.h when building with --disable-x11. https://bugzilla.gnome.org/show_bug.cgi?id=773710