Fix osx build error.