Autoconf improvements

- Autodetect Berkeley DB in various subdirectories, giving preference to 4.8, and refusing to build with other versions unless --with-incompatible-bdb is used.
- If Qt dependencies cannot be found, fall back to building just bitcoind with a warning.