Make sure the C extension is enabled
Avoid autodetection and ensure that the build fails if the C extension cannot
be enabled, and then add the missing dependency on flex
so it gets built.
The lack of the C extension caused packages like Traprain to fail to build.