Fix MacOS build