Fix build without libidn
build-sys: add strndup.c strnlen.c

Reported-by: ladimir.Marek@oracle.com
Signed-off-by: Karel Zak <kzak@redhat.com>