Copy from Lua 5.3.0 final http://www.lua.org/ftp/lua-5.3.0.tar.gz

