interim commit lua52 work
move back to old lua checks, to use lua5.2, use --with-lua=lua5.2
fix up so we at least compile against lua5.2 for our internal testing functions, they probably don't work yet, but this will not impact production use.