Fix C extension usage