fix compiling with boost::threads on newer compilers with C++11 support