Add C extension support