add build dependency check for mac host