Fix gsoap usage for PROPER builds.  #3698.

This should fix both straight-up compilation issues AND allow
HTCondor to support both gsoap with the IPV6 patch (Fedora)
and gsoap without (upstream).