Fix compile on systems not using X11