added osx support for PostgreSQL