Fix flymake support for TypeScript