Fold threads.h into crypto.h making API public