Something with a bit more reach might be helpful to keep the pirates at a safe distance and off the boat to begin with.
Obvious, isn't it? Most boats I've been on bigger than 35 foot have some sort of shotgun on board. Smart folks carry some kind of 'Deer Rifle' as well.