Modified makefile to support c++11. Changed DoF setting