add pthread to the needed libs