Fixed errors arising from compiling EgammaAnalysis