Optimize the implementation of luacompile, add linux support.