Fix ncurses to build on Mac
Add dbus package
Link emacs against the right libraries