Make bitcoin compile without wallet if "db_cxx.h" is not present

The compile didn't work with --disable-wallet before when berkeleydb (in particular, "db_cxx.h") wasn't present. I brainlessly moved all the
  #include "db.h"
into 
  #ifdef ENABLE_WALLET
blocks. Now it works.