Fix netcoind build warnings and errors
Merge branch 'master' of https://github.com/netcoin-shrodingerscat/net2