Make typescript checker capture multi-line errors properly

Also, typescript 0.9.1 now requires a module system to be specified
using the --module option. The makeprg now arbitrarily uses CommonJS
(as opposed to AMD) in order to silence this error.