Add -defaultlib=x to the flags that need to be passed to the separate linking stage for DMD.