move NSS-related files to nss/ subdir

move NSS-related files to nss/ subdir and build only on some platforms