Fixed mac build process