Fix --enable-dbus to work on platforms other than OS X.

Addresses GitHub issue #385.