The rap artist 50 Cent has made a donation to charity after revelations that he performed for the clan of Libyan leader Muammar Qaddafi.