MFH: r525677
math/flint2: fix build on non-x86
Merge upstream patches for non-x86 architectures.
PR: 243851
Approved by: portmgr (fix build blanket)