Fix compilation errors with --noImplicitAny