Fixed couple of small issues and a compilation complaint if not using boost thread in pipelib.