fix missing -lpthread (I think)
small doc fixes