Moved to boost::thread

std::thread corrupts stack in exception