Do not link to tcmalloc if NO_TCMALLOC=1

Review 1218 by @danielmewes
Closes #1958