Update to build.js, taking into account external repository optional presence. Reverting to imports/typescript in that case.
Small typo in buil.js, there is no 'lib.d.js' it's 'lib.d.ts'.
Recompiled using new build.js.