Change make to compile with -lpthread, -lboost_system