merged upstream
added compatibility for TypeScript 0.9.5
added compatibility for TypeScript 0.9.5
Merge pull request #42 from midknight41/master

compatibility for TypeScript 0.9.5