Fix installation of some packages on new root.