change
#ifdef __GXX_EXPERIMENTAL_CXX0X__
to
#if defined(__GXX_EXPERIMENTAL_CXX0X__) || __cplusplus >= 201103L