Make this compile when BIGNUM limbs (BN_ULONG) are not the samesize as "unsigned long" (e.g. in bn(64/32) configurations of openssl).
Adjust to OpenSSL 1.1
build fixes.
Import OpenBSD's dc.