Add -lpthread to the linker flags in the makefile and that should fix the undefined thread symbols problem.