maths: make stirling inline rather than constexpr
maths: make stirling inline rather than constexpr

stirling uses cmath functions which aren't constexpr, such as std::pow.
this sometimes works under linux/gcc but fails under clang/freebsd

gim/libgim,gim/libgim,gim/libgim