I think that the fact that these desperate Somalis don't typically engage in torture and often take adequate care of their hostages and release them unharmed should count in their favor.
I truly don't think they wish to harm anyone; they're starving.
Perhaps we could do something to aid the situation in Somalia, although I don't know what. I'm sure it would have to involve toppling their current government so that any assistance we sent could actually reach the people.
I believe the piracy would stop if the people had enough to live on.