FL-920: updates from bitcoin overlay for bfgminer-3.8.1