China casts a shadow over stocks ahead of earnings season