The mutant holocaust is eight years after The Last Stand
and once they go back to the future at the end... there's Jean and Scott (and... I'm gonna say it again Charles and Erik running the school together) among others alive. Thus accommodating the time gap between X3
and Days of Future Past
and explaining why they look older.