First pass of Qt 5.3 compatibility