2.4: Fix building with tcmalloc

Since the 2.4 branch still uses the "old style" malloc checks, we need to set `USE_JEMALLOC=no` if `USE_TCMALLOC` is defined since `USE_JEMALLOC` gets set if Linux is the host os