Compile the garbage collector and heap profiler as C++.

Change-Id: I25d8fa821987a3dd6d7109d07fd42dbf2fe0e589
diff --git a/vm/BitVector.h b/vm/BitVector.h
index d1a0ca3..0d23350 100644
--- a/vm/BitVector.h
+++ b/vm/BitVector.h
@@ -20,6 +20,10 @@
 #ifndef _DALVIK_BITVECTOR
 #define _DALVIK_BITVECTOR
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 /*
  * Expanding bitmap, used for tracking resources.  Bits are numbered starting
  * from zero.
@@ -100,4 +104,8 @@
 /* Return the next position set to 1. -1 means end-of-vector reached */
 int dvmBitVectorIteratorNext(BitVectorIterator* iterator);
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif /*_DALVIK_BITVECTOR*/