C API: Add support for compaction filter factories (v1)