fix compile error for net core
fix compile error for net core

thepunctuatedhorizon/BrickCoinAlpha.0.0.1,MetacoSA/NBitcoin,stratisproject/NStratis,MetacoSA/NBitcoin,NicolasDorier/NBitcoin,lontivero/NBitcoin