refactor compiler to make async
fix cs_module_adapter to compile async