fixed compilation for gen_hepmc