Update source to compatible with typescript v0.9.5