McCutchen homers, Pirates top Cubs 6-2