added 'typedef struct' for Lua state to silence C compiler