Support compilation against Qt5