Fix react v0.12 warnings