Ghadaffi sponsored a lot of schools and infrastructure in west africa. Whatever kind of mad man he was/is, he’s still a guy fighting against AlQ.
Ghadaffi has spent loads of money on schools, mosques and other buildings throughout his lifelong Jihad. Him fighting AlQaeda? That’s just the fish feeding on one another. He has been exporting terrorism all his life in the name of his jihad.