Migrate profcollectd's libflags bindings from bindgen to cxx.

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

Test: Build
Change-Id: I2a5bcbcac407ba0bb41d4884b99fe8a55113ae38
5 files changed