udpated mac build script (still testing)