Seems sometimes pthread lib has order issue.