lib/replace: add replacement for IPV6_V6ONLY on linux systems with broken headers