More project configuration.
Fix new analysis and compiler warnings.