mac compile fix