Add support for bytecode generation flags in luajit-x

Use the same functions used by LuaJIT and calls the function bcsave.start
but when detecting a lua filename pass the compiled function instead of the
filename itself.
Use luajit-x executable in the bytecode test script