ART: Fix includes

Add missing libnativehelper dependencies. Remove superfluous
ScopedLocalRef includes.

Test: mmma art
Change-Id: Ic2ecbcc1d205500307f0ef5b2859c60d3fc336f3
diff --git a/compiler/Android.bp b/compiler/Android.bp
index 1e4cdf2..c2984e1 100644
--- a/compiler/Android.bp
+++ b/compiler/Android.bp
@@ -191,6 +191,7 @@
     shared_libs: [
         "libbase",
         "liblzma",
+        "libnativehelper",
     ],
     include_dirs: ["art/disassembler"],
     header_libs: [
@@ -415,6 +416,7 @@
         "libvixld-arm64",
 
         "libbacktrace",
+        "libnativehelper",
         "libnativeloader",
     ],
 
diff --git a/dex2oat/dex2oat.cc b/dex2oat/dex2oat.cc
index c41e9da..3abf36f 100644
--- a/dex2oat/dex2oat.cc
+++ b/dex2oat/dex2oat.cc
@@ -84,7 +84,6 @@
 #include "mirror/class_loader.h"
 #include "mirror/object-inl.h"
 #include "mirror/object_array-inl.h"
-#include "nativehelper/ScopedLocalRef.h"
 #include "oat_file.h"
 #include "oat_file_assistant.h"
 #include "os.h"
diff --git a/oatdump/oatdump.cc b/oatdump/oatdump.cc
index bdc36e8..7064fa3 100644
--- a/oatdump/oatdump.cc
+++ b/oatdump/oatdump.cc
@@ -58,7 +58,6 @@
 #include "mirror/dex_cache-inl.h"
 #include "mirror/object-inl.h"
 #include "mirror/object_array-inl.h"
-#include "nativehelper/ScopedLocalRef.h"
 #include "oat.h"
 #include "oat_file-inl.h"
 #include "oat_file_manager.h"
diff --git a/runtime/Android.bp b/runtime/Android.bp
index ddfbed4..e7622f2 100644
--- a/runtime/Android.bp
+++ b/runtime/Android.bp
@@ -509,6 +509,7 @@
         "libartd",
         "libbase",
         "libbacktrace",
+        "libnativehelper",
     ],
 }