In TS dumb mode, enable error checking to ensure references are maintained.  Use .d.ts in targets so we dont need to force clean up.