History shows us that without government intervention and working unions, corporations are far, far worse than either. Without both, we'd basically still be living with no anti-child labour laws and zero workers rights.
To champion business while decrying states and unions belies a fundamental lack of understanding of history. While none are spotless, two out of three are clearly more interested in helping workers - or,at least, better things happen for them when they exist.
Capitalism isn't a philosophy - it's an economic system in which progress is driven by profit. That is the core of capitalism. There is no "capitalist doctrine" which decrees "thou art not a capitalism if thou art putting forward profit over common good - theneth thy be BAD CAPITALISM''.
Profit over common good is merely the inevitable result of capitalism. You can call it "bad capitalism" if you want, but it's an enviable result of the capitalist system. You cannot really avoid it.
The best you can really do is have strong regulation and strong unions to curtail it.
How do you see socialism working?
Either governmental control of the company or equal capital investment by all members of the company?