main/lua-xml: upgrade to 130610 and fix lua 5.2 support