Register the C-API on the module