bignum.h fixes -- still need to examine pow_mod differences