Update emacs-mac.rb

Marking `automake` as a build dependency instead of a general dependency.

Added `pkg-config` as a build dependency so an install will locate libraries installed via Homebrew.

Added libxml2, dbus, gnutls, and imagemagick as optional dependencies to make it easier to get them installed.