Fixes #5575: Add an internal BDB version for slapd builds

Ticket: http://www.rudder-project.org/redmine/issues/5575

To be merged in master