pthread is also needed