Fix return value changes in correspondence to toxcore.