Fix building with Qt4