build: improve compilation database generation
Use verbosity macros and allow to customize the bear binary at configuration level.