Add some include-file path debug.  Calcualte number of threads on demand