Study your history. It may not be politically correct but it is as it is.
I'd rather you support your statement with facts.
You say that the US fought the Barbary Pirates because they were Moslems, and yet the oldest US diplomatic mission is the one located in Tangiers.
American Legation, Tangier - Wikipedia, the free encyclopedia
Needless to say, they are also "Moslems."
The US Navy, the frigates you spoke of, were give "safe passage" through the Med by Sultan Mohammad III of Morocco (where Tangiers is located), resulting in the Moroccan-American Treaty of Friendship. And these people were ALL Moslesm.
For more:
History | Embassy of the United States