Build the C API on top of a cpp layer.