fix duplicate stake misdetection

caused by dropping orphan blocks
Add 'listbalances' RPC call to list the 'balance' of each address in the wallet.
We need more granularity on fee amount. Also it was rounding down, but rounding to nearest.
updated genbuild.sh to bring back the correct version number, based on most recent release tag