Port libminijail unit tests to C++.

That way they can be run on Android Platform Continuous Testing,
which requires gtest for parsing of test output.

Fix one issue in free_label_strings(), which was not setting
|labels->count| to 0. Also fix some nits in test files.

Bug: 30973585
Change-Id: I8bdb414329aab82e2180d412b9ecc128beab7227
diff --git a/libminijail-private.h b/libminijail-private.h
index eafcdf5..926559f 100644
--- a/libminijail-private.h
+++ b/libminijail-private.h
@@ -10,6 +10,10 @@
 #ifndef LIBMINIJAIL_PRIVATE_H
 #define LIBMINIJAIL_PRIVATE_H
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 /* Explicitly declare exported functions so that -fvisibility tricks
  * can be used for testing and minimal symbol leakage occurs.
  */
@@ -83,4 +87,8 @@
  */
 extern void minijail_preenter(struct minijail *j);
 
+#ifdef __cplusplus
+}; /* extern "C" */
+#endif
+
 #endif /* !LIBMINIJAIL_PRIVATE_H */