Link pthread using find_package

CXX removed from 'project(... CXX)' for automatically
detect language (need for 'find_package(Threads)')