Misc fixes for new toxcore.