Added option to limit the number of parallel optimization processes

fixes #196 #184 and I suspect also #193 on multi-core (8+) machines
running Win64.