Added -pthread arg to gcc in Makefile