Fix corresponding API name changes in toxcore.

Respond to core API name changes:

https://github.com/irungentoo/ProjectTox-Core/pull/668