Lua string patterns rewritten in Lua + FFI, for LuaJIT.