merged from tpruvot
stratum: difficulty can be buggy with values close to zero
bug seen on windows with xpool.ca (x11)