-pthread, not -lpthread