move bdb dependencies to clcommon