Minor fixes to multiprocessing.