Dependency installation fixes for Debian/Ubuntu

A series of small fixes for issues with dependency installations, which were making `scripts/create-dev-env.sh` crash, or skip some necessary dependencies. The test was on a VM with Ubuntu 12.04 LTS (precise), freshly installed for the occasion.