Fix a corner case where perl-threaded may be installed as opposed to the
stock Perl port.

Submitted by:	Alex Kozlov
Do not try and use IPv6 if the host's kernel is not built with IPv6 support.
(Bad host's kernel!)

Submitted by:	Alex Kozlov
Sync with Docbook