Use pkg-config and pg_config

I tested with pmake and gmake.