Fix building Qt5 with QtDBus (same problem as was fixed in the Qt4 formula)

This is a straight port from 523e8a3a (which fixed the issue for qt4
to the qt5 formula)