Fix race between concurrent runs of rdmd
Also protect racy writes to object files and dependency file
s/getAttributes/getAttributesSoft/g
Add import on Windows
Hard rename binary instead of soft rename