qt: fix superenv and other cleanup.