Add FreeBSD support for setting CPU affinity.
Merge pull request #19 from lye/freebsd-cpu-pinning

Add FreeBSD support for setting CPU affinity.
Add "cert" option for rpc server's self-signed SSL certificate

When minerd is used across the internet, the server's rpc userpass
travel unexcrypted, allowing anyone en route to copy them and
empty the server's wallet. Using https: would prevent this
but minerd's SSL connection fails on self-signed certificates.

This change adds a "-cert file" option (cert:"file" in minerd.conf)
to tell minerd the filename of the server's self-signed certificate.
Add Stratum support
Ignore configure.lineno and config.status.lineno
Replace sscanf() with strtol() in hex2bin()
Perform global libcurl initialization

curl_easy_init() is not thread-safe unless curl_global_init() has
already been called.
It seems that SSL initialization is slow on Windows, so only do that
if the mining server has to be accessed via HTTPS.
Thanks to @martinwguy for pointing this out.
Ignore getwork errors when switching to Stratum
Version 2.3
Merge commit 'b6f26e1' from martinwguy/master

Add "cert" option for rpc server's self-signed SSL certificate
Avoid passing NULL to strcmp() in stratum_thread()
Fix hash endianness for SHA-256d
Accept any non-false result for mining.authorize
Version 2.3.1
Fix array index out of bounds in sha256d()
Make benchmark data more realistic
Do not log per-thread CPU affinity in quiet mode
Avoid the use of Stratum in benchmark mode
Explicitly flush stderr in applog()
Add AVX2-enabled functions for x86-64