Social security and endogenous growth