I confirm that adding the pthread library did the trick. But the question "why" is still there :)