darwin: support build tun2socks as library