Eh, too late for this pull, but you should only include db_cxx.h when ENABLE_WALLET