Fix Qt4 compilation

And a typo