fix typo
fix warning when building w/o dbus
fix OSX build warning
fix build warning

strangely only OSX noticed this was imported and unused