Adding check to see if we are using the -threaded flag