We plan to upgrade to newer gperftools in PM-1318, but we don't want that to block C++17. Make the minimal edits required to get 2.5 to build.