Fix errors to compile in linux. Use option -std=c++11 in g++