Updates to match core changes

See also:
https://github.com/irungentoo/toxcore/commit/80fdfbad07a7ab29dce86e862ae8429c241d5ce3
and
https://github.com/irungentoo/toxcore/commit/d2640103649b4513d2fc4d7bbb291fa941023ebf