auto detect arch and remove __tb_arch_xxx macro
add open_and_xxx interfaces for astream