Have runFsmThreads take a config object
Fix lib path