Fix MacOS build.