misc build fixes
move the C code template out to a separate file
some Inline build fixes
test Inline::Module build