Fix usage of char_list and fix the build