[1/2] fix thrift build on OSX

__HAVE_IPV6