add support for lua static library.
mv lua/ to work/ lua/cfg.lua to lua/main.lua.