Try to use pkg-config to resolve libnss and related dependencies.

Hi Victor,

Here's the tiny tweak for using pkg-config to locate libnss et al. at configure time, as we briefly discussed over email. If anything's amiss, shout!

Cheers,
-C.