Added huge hack to support doing `cloneWithProps` on both React 0.10 and
React 0.11.