Merge pull request #405 from thess/libpq-dep-fix