Tweak dependencies to allow building with ancient tools and for ancient postgresql