add local osx build.
improve local build.