Fix Qt4 compilation