Fix clang compiler errors and warnings in DQMServices/Core

clang was failing to compile becuase of unused variable errors in
DQMStore. Also fixed warnings about forward declarations not being
the same type as struct/class declarations.
Merge pull request #4475 from Dr15Jones/clangFixDQMServicesCore

Fix clang compiler errors and warnings in DQMServices/Core