initial_args warning

Provide for WIN32 and non-WIN32 condition for initial_args malloc (compiler warning)
and remove redundant static.
initial_args warning

Remove #ifdef WIN32 "static const char *" appears to be ok for all platforms.
Merge pull request #214 from sterlingpickens/patch-1

initial_args warning
Fixed found blocks calculation.
Bugfix: initiate_stratum: Ensure extranonce2 size is not negative (which could lead to exploits later as too little memory gets allocated)

Thanks to Mick Ayzenberg <mick@dejavusecurity.com> for finding this!
Stratum: extract_sockaddr: Truncate overlong addresses rather than stack overflow

Thanks to Mick Ayzenberg <mick@dejavusecurity.com> for finding this!
stratum: parse_reconnect(): treat pool-sent URL as untrusted.

Thanks to Mick Ayzenberg <mick@dejavusecurity.com> for reminding
that this existed and highlighting the offender.

Also to Luke-jr for actually fixing this in bfgminer. :D
stratum: parse_notify(): Don't die on malformed bbversion/prev_hash/nbit/ntime.

Might have introduced a memory leak, don't have time to check. :(

Should the other hex2bin()'s be checked?

Thanks to Mick Ayzenberg <mick.dejavusecurity.com> for finding this.
Merge branch 'dejavusec-backport'

Cherry-picked from v5_0.

Fixes for a few security vulnerabilities reported by Mick Ayzenberg of DejaVu Security.
misc: ChangeLog typo.

Testing IRC commit bot.
Fix issue compiling in mingw32
Update windows-build.txt
Update AUTHORS.md
Fix possible config issue

Fixing a possible problem where loading default profile would override global level options.
60 second quit fix after algo switch
60 second quit fix after algo switch
Fixed GPU initialization

Fixed the GPU initialization to happen only after the first pool alive is switched to. This way no unnecessary kernels are loaded.
GPU Initialization update

Moved the GPU initialization block to happen when a pool is actually switched to. Sometimes the first pool alive isn't the first pool switched to. This would result in unnecessary kernel loading if the first pool detected alive isn't used right away.
GPU initialization update

Undo 212009a48aa566415a6531f076146fb8ad2dcbb4 as it caused some issues with some pools and configs.
Fix high fan issue at startup/algo switch

Was setting fan speed to gpu_fan (which is the max) instead of min_fan on GPU settings change.