Fix for typescript 0.9.7.