dbus: fix some compilation errors