Fix build warnings
Deprecation warnings excluded, i.e. built with -Wno-deprecated-declarations
.
I wonder if the parts of the code delimited by HAVE_DBUS
and HAVE_DBUS_NEW_FLAGS
should not be removed after the changes in !1 (merged). For now I've left everything, using G_GNUC_UNUSED
if necessary.