d-bus: fix build on 10.6

Fixes #31331.