Migrate profcollectd's libbase bindings from bindgen to cxx.

This should both simplify the code and fix some errors in the existing
implementation.

Bug: 182498247
Test: Build
Change-Id: Id3f7f518922e745715aef1286be684bd3e9c16fe
Merged-In: Id3f7f518922e745715aef1286be684bd3e9c16fe
(cherry picked from commit 93dd9936881424d2ed4f061bd7d06f8d74163010)
5 files changed