Fix issues with postgres install