Fixed code for Lua 5.2. No more declaration in global.
Releasing 1.0.2 compatible with Lua 5.2.