Fixed Makefile. Solved racecondition issue