Added pthread library