Updated to work with TypeScript 0.9.1.1