MacOS build fixed