fix typo with postgresql switch

I was trying to compile with postgres, but the `with-postgresql` and `build.with` check were inconsistent.