VS2010 build: prepare ADL.

Cherry-picked by veox.
VS2010 build: prepare API.

Cherry-picked by veox.

Previous variable 'new' was badly named, but troky's 'n' was too cryptic.
Therefore renamed to 'newsize'.
VS2010 build: ccan/opt

Cherry-picked by veox.
VS2010 build: Prepare compat/jansson-2.5.

Cherry-picked by veox.

Not a big fan of modifying compat libraries, makes it harder to maintain
later on. See if these changes are relevant upstream.
VS2010 build: Prepare driver-opencl.c.

Cherry-picked by veox.

Changes from troky: struct device_drv opencl_drv tab alignment.
VS2010 build: Prepare findnonce.c

Cherry-picked by veox.
VS2010 build: Prepare hexdump.c

Cherry-picked by veox.
VS2010 build: Prepare miner.h

Cherry-picked by veox.
VS2010 build: Prepare ocl.c

Cherry-picked by veox.
VS2010 build: Prepare scrypt.c

Cherry-picked by veox.
VS2010 build: Prepare util.c

Cherry-picked by veox.
VS2010 build: commit elist.h and relevant changes in sgminer.c and util.c

Cherry-picked by veox.

Introduces a segfault. Expect a HEAD reset.
VS2010 build: fix a segfault from a removed realloc.
VS2010 build: winbuild/* dist and project files.

Cherry-picked by veox.
VS2010 build: revert le256todouble() cast/ref/deref change.

Introduced by commit 87e5f35745321132cea3e5b21ddb7d69e8a8eb0f

The cast/ref/deref is performed wrong and breaks share/best share display.
It is not the value of target that should be increased, but its address.

If all else fails, add an `#ifdef _MSVC_VER`; we should avoid it if possible.

In either case, constructs like `&(*(((uint64_t *)target) + 24))` must be
explained (in a comment).
VS2010 build: Missing config.h and .gitignore rule to keep windows config.h
VS2010 build: move windows config.h gitignore rule to winbuild/.gitignore
VS2010 build: Added libs download link.
Merge branch 'master' into build-msvs2010-upd

Conflicts (resolved):
	sgminer.c
Fixed missing realloc removed by mistake.

Conflicts (resolved):
	sgminer.c