Add export statements in generated code