simplified cmake file to use `find_package(Threads)` instead of `pthread` queries