Fix compilation with Qt4