configure: fix check for libnsl