qt5: fix qtdbus build

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