Forgot Obito's body was crushed. It doesn't make sense that sharingans can make people live longer though. Its possible that Madara's original body is dead, but he has the ability to transfer his spirit into another plane (the place he took sasuke after his battle with Danzo).