fix 'typedef redefinition' build errors on older gcc versions
building toxcore