fixed compile postgres