fix tools for latest libbitcoin reorg changes.