update makefiles for std c++11