Fix race between concurrent runs of rdmd

We found this issue at work - concurrent runs of rdmd with the same command line don't work because they compete to write the same executable.

I've also taken the liberty to fix a couple of issues in posix.mak, such as setting OS and MODEL (more code duplication across dmd, phobos, druntime, and tools...) and replaced unneeded use of `?=`.