World markets mixed after S&P 500 ends worst year since 2008