Pthread wrappers and other concurrency tools