Also, I don't think you need `postgresql-server-dev-9.1` unless you are building something for PG, I think you need `libpq-dev`.