Ffi infer (first pass)

Infer ffi globals, structs and function signatures via C compilation