Restore Qt 5.x support.