refactor match_arch to filter.h
fix invalid write in strbuf
use c11 now