Fix a few TypeScript warnings