FS-5396 --resolve
use this and send {sip_gethostbyname=true} in the dial string to force this behaviour
cleanup
fix windows compiler error