The relationship goes back a long way. If you are interested I wrote something about it: http://www.countercurrents.org/fryett150311.htm
http://www.alternet.org/newsandviews/article/661123/exactly_how_tight_were_libya_and_the_cia_new_documents_reveal_secret_%22war_on_terror%22_relationship/#paragraph5