Fix build error: Missing dependency on macosx