update install-dependencies.sh for debian
fix missing include of <unistd.h> for readlink()