Support to pass <uses-library> option through to dex2oat.
This change takes an app's shared libraries specified by <uses-library>
and passes it through to dex2oat to be used during compilation.
Part of a multi-project change.
Includes fix from a6d46161
Bug: 26880306
(cherry-picked from commit 26e8a2f1)
Change-Id: I6bfc13693dbb835ca52fed2d03ec5346d43ec5d9