added pthread lib for linux build