Fix clang problems in FWCore

There were several clang errors and warnings originating from FWCore. These commits fix those problems.