Qt5 compilation fix