Add Lua 5.2 scripting's support. Adapt compile.sh.