Add tcmalloc optional dependency
Add default clause to switch