Horrific workaround to silence gtk warnings on import if no X11. Yuck.