mac compile error fixed