Make the code compiled on C++11