added pthread to cmake