Correct check for ipv6 address
Added http-tiny library from here: http://www.demailly.com/~dl/wwwtools.html#http-tiny
Not yet used by the agent.
Fix build.