Updating to the latest version of TypeScript and related libraries.
Updating more things to get a clean compile.