We did not improve people's lifespans. At least not that much. What happened is that young people die less due to less hazardous conditions which improved the average age. Also the average age is not the problem. The problem is that social security was setup as a ponzi scheme (younger pays for older) instead of a saving scheme (each one build a nest for himself). A ponzi scheme will eventually implode but if you manipulate the parameters you can make it go further.