Compile lua scripts