Fixed make file for c++11 and pthread