Add Capi wrapper controlled by enable-capi