Lua 5.2.2 import from http://www.lua.org/ftp/lua-5.2.2.tar.gz
Removed -DLUA_COMPAT_ALL from Makefile CFLAGS.
Added lua_gethookcountcurrent/1 for querying the current (remaining) hookcount value.