Fix compilation of gperftools.