fix compile error with gcc: using C++11 feature