moved bool_to_gvalue out of IPV6 ifdef