Fix postgresql installation when already compiled