Fix emacs startup with no X support