OSX doesn't have dbus support. 'erc-global-notify makes a call to
notifications which relies on dbus. Check to see if
dbus-compiled-version exists before adding hook.
Note: This variable is added in emacs 24.3. There may be a better way to
check for dbus support.