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