fix gtest on Apple