Switched to a specfun implementation of lgamma to allow 16-bit builds.