From 2011: Libyan rebel leader admitted his fighters (against Gaddafi) had al-Qaeda links
Libyan rebel commander admits his fighters have al-Qaeda links By Praveen Swami, Nick Squires and Duncan Gardham | March 25, 2011
‘Abdel-Hakim al-Hasidi, the Libyan rebel leader, has said jihadists who fought against allied troops in Iraq are on the front lines of the battle against Muammar Gaddafi’s regime…
‘Mr al-Hasidi admitted he had earlier fought against “the foreign invasion” in Afghanistan, before being “captured in 2002 in Peshwar, in Pakistan”. He was later handed over to the US, and then held in Libya before being released in 2008….’
Notice how he was a prisoner, and then he is released and ends up fighting on the same side as the West against Gaddafi.
The Libyan Islamic Fighting Group, had a “co-operative relationship” with al-Qaeda. His organization also fought Gaddafi in 1995-1996.
Also, ‘Idriss Deby Itno, Chad’s president, said al-Qaeda had managed to pillage military arsenals in the Libyan rebel zone…’.