Investors cheered strong results from Caterpillar. The construction equipment company also thinks the global economy is getting better.