Declare variable 'ffi' in global scope

Can we hoist this outside compile() ?  Just make it a local in the module.