replace basic log for scripting
build lua dylib for macosx