change compiler flag for c++11 selection, compatible with older gcc