Add some threshold returns to protect vs. messed up rounding modes
Custom lgamma so improved AKS works on all platforms
ActiveState's gcc can't find builtins.  Pre-2005 compiler?
Allow threading failures with diagnostics