fix mac compile