fix compilation for macports pHash

if pHash is installed in non-standard locations (/opt/local/ on macports), node-gyp will not find it.
I added a couple of pkg-config calls to the binding file to make it work.
I don't think they'll do harm on other platforms.