Added -lpthread to the LIBS