fixed compilation of many ts-files on windows