Add Capi wrapper controlled by enable-capi.

Signed-off-by: Tang Xin <xin.t.tang@intel.com>