Fix Qt5 compilation