dmd: download additional resources before compiling

Fixes the bug that you cannot build dmd because resource druntime and phobos don't exist before the compiling action actually involved.