Fix collectd, couldn't run due to missing pthread_cancel.