bug 761 14x

backport libhtp ipv6 0.5.x changes to 1.4.x