Fix tsc errors after upgrading to TypeScript 0.8.3.1.