Preliminary multithreading support in simpleminer