Set default build type to RelWithDebInfo.

Fixes #5112
Implement DbCatEverything flag.

Fixes #5096