Fix compatibility issue with how LuaJIT 5.1 handles varargs