fix script chmod
fix findpackage Threads