An alternative way of organising society and production would be to optimise for the good of society instead of just profit.
Attempts have been made to fix capitalism via regulations such as "the non-baby kill act of whatever". However, our "democratic" system is not really democratic, it more like an oligarchy. Therefore, MR CEO has to take into account bribing politicians to influence regulation in order to maximize profits.
Instead of patching capitalism, a better idea is to introduce democracy from the ground up. That is we acknowledge that the work place has a greater impact on our daily lives than the government itself. If the workplace is ruled as a dictatorship, then workers of that place spend most of their productive time under an authoritarian regime.
Democracy of the workplace would mean that every worker has a vote on how the company is ruled.
Compensation would be a matter of concensus between the workers. Which would address the inequality we currently face.
The idea that your friend had of a farmer working for free or some sort of barter is not something I share.