fix errors with TypeScript0.9.5.

fix errors with TypeScript0.9.5.