add a "-lpthread" to the end of the make command.