Make sure that beforelinking explicitly depends on the object files.
Merge branch 'debug-dir' into mark