Avoid compilation warnings when D-Bus functions not available.