Made toxdns header cpp-friendly

Mataes pointed out on IRC that toxdns.h doesn't extern C when integrated into cpp code.