Change reference version of Berkeley DB to 5.1

Change reference version of Berkeley DB to 5.1, to match available libraries in Ubuntu LTS and Debian 7.

This breaks forward compatibility of old clients, but given all previous versions have done so as well, it feels like that's a reasonable trade-off for the simplified build process.