Adding the rockspec and fixing the compatibility with Lua 5.1