add missing declarations for slice C-API