handle deps before compilation.