Fixing remaining compilations errors from BerkeleyDb.