Fix compilation with TypeScript 0.9