libreplace: try to fix the build on HP-UX which has if_nametoindex() in -lipv6