libc: import if_nametoindex() from musl

Needed for debug build (some random boost dependency).

Signed-off-by: Avi Kivity <avi@cloudius-systems.com>
Signed-off-by: Pekka Enberg <penberg@cloudius-systems.com>