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 c09662d9
Bug: 26880306
(cherry-picked from commmit de7f0cf8)
Change-Id: Ideb2aba46f4cf52acb9dd480993513a60dbfd6ce