Piracy is an industry, which does not operate in a vacuum. They need port facilities and repair facilities for their boats. The pirates have homes. They contribute to the local economy. The whole village is the pirate support infrastructure.
The pirates are effectively operating in a state of war against the rest of the world. The only effective treatment would be for the rest of the world to treat the Somali coastline like it would have treated enemy bases during WW2. Namely, carpet bomb any village from which pirates operate.
Precisely. There should be no limit to how many innocent civilians we kill. They all have flies up their noses, anyway. Eff 'em, they're not human.