support tsc version > 1.0 (#3)