Quick fix for pthread and c++11 build issue.