Assorted junk to make graphical emacs on Ubuntu work