update buildscript for mac