Codegen to DLL worked on windows