Fix mac compile issue