libreplace: we need to use AC_TRY_LINK() to make sure HAVE_IPV6 is correctly detected