lib fix warnings (ai)

Some more fixes on warnings.

This time, this is the `ai` project that ends up cleaned of all warnings!