At the end of the day I think the right place to do this fix is, some way, in Makefile.PL. Maybe using perl to munge a template.pm with different use Inline stuff.
Where I have a hard time getting my head around this stuff is that there's a main Makefile.PL but then Inline::C is creating its own Makefile.PL. It would be awesome if I could somehow inherit "environment" from the main Makefile.PL but they are completely independent I guess. So I have to gen code. -- John.