Bugfix: bitforce: XLINK: Avoid trying to send 0 bytes after each write
bitforce: XLINK: Update to use actual length,xlinkid header order
Windows: Use backtrace.dll to print usable backtraces to stderr on crash
Bugfix: On stratum disconnect, clear stratum_active and stratum_notify atomically along with sock

Fixes a crash when stratum_write attempts to FD_SET a -1 fd
serial_autodetect_ftdi: Debuglog FTDI COM port mappings returned
bitforce: RPC pgaset fanmode 9 for auto fan control
Bugfix: Do not try to call get_stats or get_statline* if device is still initializing

Conflicts:
	miner.c
Merge commit '450ed2a' into bfgminer-3.0.x
Merge commit '12bc64e' into bfgminer-3.0.x
Merge commit '69813a7' into bfgminer-3.0.x
Merge commit 'a6e2394' into bfgminer-3.0.x
Merge commit '8816316' into bfgminer-3.0.x
Bugfix: Save start time for stats to correct "Elapsed" key on "stats" RPC request

Conflicts:
	deviceapi.c