C++11 wrapper for the pthread library