move extern c in codegen, add in dlload