Automatically wrap C functions and structs at runtime for the Lua/C API