Necessary changes to make emacs work under OSX