fix compiling on FreeBSD
rename POST_LINKING to LFLAGS
add /usr/local/ subdir to LFLAGS and CFLAGS
shuffle NSS functions to only expose externaly used function in header file
exit peer import quicker on shutdown
improve regex to update /etc/nsswitch.conf