Compile and link in a single step

This is the diff from the dlang.org forum