Add script to generate the -threaded CDF