Sync with toxcore API changes