add script to build emacs