Cleanup Linker / Optimizer

I think we should even call this `genExportedMembers` and give it a `LinkedClass`