Setup pthread framework. Testing.