dbus_tools: fix build on darwin (close #929)