Modify to remove c++11 dependency to run on Android platform with gcc 4.7