fixes for installing in chroot