Fix. compile pthread version.