configure: fix check for libnsl

Pointed-out-by: Jon Tibble <meths@btinternet.com>