Caterpillar’s slumping machinery sales could portend trouble in emerging markets