I would strongly recommend that you mock up your dio first accurately at scale. A 40 mm gun takes up a considerable area, as would a quad mount.
You'd be adding a square foot or so of plan area and 6" min height to the whole construction, plus the complication of all of the other stuff in between the gun and the deck.
A worthwhile project for sure and that will probably influence the gun(s) you choose.