Fix import of C-API