add Name Service Switch (NSS) support for FreeBSD