apply lua 5.1.5 patch#2

http://www.lua.org/bugs.html#5.1.5