fix compilation error with TypeScript 1.0rc