Deal with old qt versions