Required changes to build against Qt5.