Declare variable 'ffi' in global scope

I think the Lua idiom is to locally calculate values like Inf (1/0) and NaN (0/0) like this and that they don't have a standard binding anywhere. (That was my conclusion last week when googling around for where to find NaN.)