Created attachment 210410 [details]
Tested to build on powerpc64.
Created attachment 210635 [details]
Looks like my original patch is wrong, some Lua is needed after all. Since I don't know how to use Luajit on some platforms and Lua on others apart from specifying each one, make an option for it.