added pthread dependency in unix