Maybe Cosmopolitan could be used with luastatic[1] to compile a Lua program to an "Actually Portable Executable":
CC="" luastatic main.lua
# Compile main.luastatic.c with Cosmopolitan Libc
[1] https://github.com/ers35/luastatic