gulp-tsc has fixed the references problem, so no need to do the workaround anymore