Bug fixes for old Qt [ci skip]