ghc-9.2.5: The GHC API

Some platforms require that we explicitly link against libm if any math-y things are used (which we assume to include all programs). See #14022.