Fix tcmalloc detection