kakasi_lib: fix various errors.