Replace most chars and ints with uint*_t