I agree with you for the most part but I don't really think that's the case about terrorists, if that was true why is the PKK still in Turkey for the past 30 years, There's always going to be things outside one's control and it takes time and effort to bring it under control. I'm for the military base, it will train more soldiers at home and keep our neighbors on their toes.
I'm just waiting for a training air base

and a naval facility to protect our shores against toxic waste and toxic people
The issue with PKK could be explained easily.
If Xamar were to consolidate Somaliland by force then I'm sure there would be some groups hiding in the bushes fighting off the invaders for decades to come.
Most likely we'd know who they are as they all live with their families in a certain region.
We could clean them up overnight but that would end up worsening our relationship with the ex Landers citizens.
So we'll most likely just suffer their existence like Turkey does with the PKK.
Al Shabaab is different. No group will stand up for them and 99% want them gone.
A few months of intelligence and some bribery could let us know of all their local leaders through some help from the Turkish intelligence agency.
All it takes them is some well placed cheese traps and some modern artillery to clear them out.
However Turkey isn't really interested in helping us.
Those they train will most likely have inferior training that isn't applicable to real war just like the police training that EU is spending millions on.
If they really were to help us then they would have to clash with some European interests and I doubt they see us worth doing that.
Can't blame them though...It's us not helping ourselves that marked us as hopeless.