change ifdef for c++11