fix mac build scripts