Fixed dependencies on Makefile.
.gitignore is now cross plaform.
Added some new files to the cleanup list.
Added extra dependency to avoid race conditions.
Fix to avoid issues with race conditions in parallel builds.