Fix dependencies and install scripts