Fix broken build with Qt4.