Remove all the dependencies we don't need

The problem which is solved by this PR is a general one, and the build env will be optimized at some point to prevent this happening again.
However, __tests should not pull in all the modules as dependencies!__