Fix a bunch of clang reported issues.
Merge pull request #3772 from ktf/fix-clang-issues

Fix a bunch of clang reported issues.
Merge remote branch 'origin/CMSSW_7_1_X' into CMSSW_7_0_X