fix some mac compile publem