Added pthread thread backend.