add support for setting algorithm/nfactor for each pool separately, and fix bugged OpenCL thread cleanup (thread shutdown)
Merge remote-tracking branch 'mrbrdo/poolalgo'

Conflicts (resoved):
	ocl.c
	sgminer.c
pool: don't pass unused argument to sprintf() in add_pool().

Silences gcc warning.