Fixes typescript version and adds --noLib option