Fixed errors arising from compiling RecoEgamma