Refining build of the BerkeleyDB