Made the whole thing compile against Qt5