Added pthread flag