Fix for typescript 0.9.7.
Merge pull request #1752 from gyohk/release-0.9.7

Fix for typescript 0.9.7.