Fix a few typescript warnings.