moved bool_to_gvalue out of IPV6 ifdef

Addresses #23