[cmake] explicitly link more libraries for threading

See discussion on https://github.com/gperftools/gperftools/pull/1473
1 file changed