Try fix MacOS compile error.