bignum to octstr convertion bug fix, some prototypes added