build the mac env