fix mac building script