Fix the PostgreSQL install errors

Fixes the errors mentioned in issue #844