Decrease compiler warning thresholds and fix outstanding warnings.

Note: this round fixes clang / gcc -Wetra warnings. More fixing remains for icc -w3 errors.