install.sh: dependencies and other fixes