Move C++ API over to function tables rather than linking libRS directly.

Change-Id: I7841df768d5bd10fa941b3655673fd73496a8137
diff --git a/cpp/BaseObj.cpp b/cpp/BaseObj.cpp
index 828bd87..fa7d73c 100644
--- a/cpp/BaseObj.cpp
+++ b/cpp/BaseObj.cpp
@@ -44,7 +44,7 @@
 }
 
 BaseObj::~BaseObj() {
-    rsObjDestroy(mRS->getContext(), mID);
+    RS::dispatch->ObjDestroy(mRS->getContext(), mID);
     mRS = NULL;
     mID = NULL;
 }