The question of teaching quality is a part of the problem. Almost no university in the US judges professors based on teaching. They claim to do so, but the tenure decision is primarily a judgement of publications and external funding. In my case the quality of publications was largely irrelevant. I assume that better universities judge quality of research, but I haven't been there. We need to seriously consider having teaching positions for PhDs in addition to research positions. I am not sure if the institutional motivation is money or prestige, but I think that many schools short-change students to pursue research. Expecting research and funding degrades teaching. Better teaching will help to produce better research.
I also like the idea of researchers not being under such huge pressure to survive. Pressure, along with incentives, contributes to the willingness to take shortcuts and to publish made-up results.
My last comment is that publicly funded research should not result in private wealth. If the public pays for the research, we should get cheaper prices on the goods. Perhaps there could be a system where such products are public domain and available for all to develop and market competitively.
Time-sharing is the junk-mail part of the computer business. -- H.R.J. Grosch (attributed)