Codegen

Add dynamic lib that runs on Mac.