fix macos and linux dependencies