Changed code generation to allow DLLs.