Use fmt::runtime when compiling with GCC 11
Same as in !1537 (merged), but the last time I managed to compile without this change (either that or I included it in the spack recipe but not in the merge request. The changes can be reverted once GCC 11 is not supported anymore, as I note in the comments.