add c++11 support in gnu compiler