Incorporating @vjpr's fixes from issue #5 in the original repo
New option to control tsc's module option
Updated included version of tsc lib
TypeScript's src/core/environment.ts requires Buffer from nodejs
Updated node.d.ts to latest from definitely typed
Using outdir instead of out to support multi-files