rc: when disabling IPv6 at build time some IPv6-related code was still being included