Migrate profcollectd's libbase bindings from bindgen to cxx.

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

Test: Build
Change-Id: Id3f7f518922e745715aef1286be684bd3e9c16fe
5 files changed