A vacuum leak sounds a plausible explanation for the rough idling if you have a petrol engine because servo vacuum is drawn from the intake manifold. (Diesels have a combined fuel/vacuum pump for the servo.) Whether that would also explain an EGR problem I do not know.
What surprises me is engine fumes are getting into the cabin. Modern car ventilation ducts are usually well sealed from the engine bay.