Updated according to toxcore.h changes