work arround ubuntu std::thread problem