fix pagerank build on mac