Report problems as errors in dx (with exit codes)

(cherry picked from commit 593a7233e13d6eeb8ae5d894e29c6a27cbc7b7f0)

Change-Id: I6421f95ceb97a596a19781e46cb4767bfb21cdbd
Fix alignment when recompacting a DexMerger result.

(cherry picked from commit a659fe6f8a0b7d32eafc9a2ff7aa1387702da053)

Change-Id: I7c93e7d45b52655cd7adfdc3fc783757ee71079b
vm: vmruntime: remove obsolete dependency on array.h

Change-Id: Ib1a0143752e701bf2f1e0b7edb4ea7829aa4edc3
Signed-off-by: Dima Zavin <dima@android.com>