Fix durandal.d.ts compilation with TypeScript 0.9

There was compilation errors with the new TypeScript 0.9. Fixed them.