Nothing obvious (to me, anyway) in the C or XS files.
Does this happen only with Inline::C ? Do you get the same sort of behaviour with a "Hello World" type of Inline::C script ? (ie a script that doesn't explicitly use any of the perl API functions.) Do you get the same sort of behaviour whenever you build a perl extension ?