Fix compilation errors after update to TypeScript 1.3