Making it work with unmodified TypeScript.

--HG--
branch : websplat2