Add multi-platform support for emacs gui