Support building casacore with GCC 13
Apply the same patch as https://github.com/casacore/casacore/pull/1309, so spack can also build Casacore with GCC 13+
Apply the same patch as https://github.com/casacore/casacore/pull/1309, so spack can also build Casacore with GCC 13+