use char instead of uint8_t, fix compiler warnings so toxic compiles with -Wall and -Werror on gcc and clang