libreplace: add test for HAVE_IPV6