Fix postgres install problems