Fix USE_BDB build