add mac way of getting free memory