implement --spawn option to change threading library