Qt 5 compatibility changes