fix compilation warnings and a bug in PFRecoTauChargedHadronProducer.cc