IPV6 compile fix on unbuntu.
Merge pull request #1 from sunyc/issue1-ipv6-compile

IPV6 compile fix on unbuntu.