add c++11 flag for compilation.