Fix building without X11 but with Lua