Fix segmentation fault when running multithread

Redirect unwanted output to a stringstream rather than /dev/null,
which has caused segmentation faults.

Also, progress asterixes are removed as they did not work as supposed to.
Merge pull request #9 from laods/fix_segfault

Fix segmentation fault when running multithread