src: use LIBC_SO and LIBNSL_SO from GNU libc, if available