added new to c++ troubleshooting (problem with g++ and pthread)