Add missing gcc option -pthread to build correctly

No match.