Fix compilation issues due to toxcore API changes

Fixes https://github.com/organ/golibtox/issues/4 as well as other compilation issues.

Thanks for creating this library by the way. :)