A lot of Qt 5 compatibility changes