Compatibility with TS 0.9

'declare' now required for top level non-interface : 

https://typescript.codeplex.com/wikipage?title=Known%20breaking%20changes%20between%200.8%20and%200.9
Merge pull request #504 from basarat/patch-1

Compatibility with TS 0.9