include and library dirs as configure params

With potentially many postgresql versions installed, the include and
library directories need to be selectable via parameters to configure
and not be hardcoded in the Makefile for Mac OSX and Linux
Merge pull request #505 from intensifi/PostgreSQL

include and library dirs as configure params