fix mac compile issue