Upgrade to Lua 5.2.3 RC1, which seems to come with a few more patches (see lbitlib.c, ldo.c, liolib.c).