Qt4 compilation fix