Fix osx compile.