added building scripts for macx