fix build with uClibc without IPv6

Signed-off-by: Francois Perrad <francois.perrad@gadz.org>