Update toxcore API name.

In respond to toxcore API name changes:
Please refer to https://github.com/irungentoo/ProjectTox-Core/pull/668