fixes to run emacs under osx