liblo: make ipv6 optional

Closes #17353.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>