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.