Merge PR #374: Change reference version of Berkeley DB to 5.1

This breaks forward compatibility of old clients. You can downgrade your wallet though with "db5.1_dump wallet.dat.old | db4.8_load wallet.dat"