If capitalism works, it will solve that problem. In other industries there are talent shortages. Maybe markets will be created on making tools to raise the relative skillset of a displaced workforce?
One can hope, and I would sincerely like to think that new markets within manufacturing or other "old" industries are going to emerge. Off-shoring isn't the cheap solution it once was. Then again, I tend to be very critical of the belief that other industries have "shortages": http://spectrum.ieee.org/at-work/education/the-stem-crisis-i...