Actually missing some ssl libraries as well.

Actually, you will need zlib1g-dev and openssl as well.