macos build fixed