improvements to the build and setup of psql