Compatibility fixes.

AF_INET/AF_INET6 can vary across devices, we introduce TOX_AF_INET and
TOX_AF_INET6 to fix this.
Send groupchat ips like DHT ones.
Cleaned up and fixed various things.