take out -lpthread. don't need it.