fix macos build