Migrate from legacy osxc
improve setup script