Update Makefile

fix threading on linux (part 1)