Make Makefile safe for parallel compilation.

Works fine for me and seriously cuts down the compilation time.