Add support for windows (VC2013)

also fix some existing bugs...

cryptonight hashrate log and lock when missing stratum diff

Signed-off-by: Tanguy Pruvot <tanguy.pruvot@gmail.com>