Re-apply "Remove d8-compat-dx dependencies"

This reverts commit 4100773a958e521d5a7c9e53458944c8061d0f9c and
fixes issues in the original implementation.

Test: art/tools/buildbot-build.sh -j8 --host &&
    art/tools/run-libcore-tests.sh '--mode=host' '--variant=X64' --debug

Change-Id: I2b299d8ab3fd78e55a35b6586324db66cba89d6e
2 files changed