Added pthread as Linux dependency