Check C source dependencies in needs_compile
Add test for C dependencies