Fix React 0.12 deprecation warnings