Added support for Quark mining.
Added support for quarkcoin difficulty calculation.
Merge branch 'quark'

Conflicts:
	Makefile.am
	configure.ac
	driver-opencl.c
	miner.h
	ocl.c
	sgminer.c
Merge branch 'master' of https://github.com/prettyhatemachine/sph-sgminer