Another try to fix compilation with pthread.