Convert parts of Delta diff code to macros so that we can re-use it on other platforms.
Convert parts of Delta diff code to macros so that we can re-use it on other platforms.

nlgcoin/guldencoin-official,nlgcoin/guldencoin-official,nlgcoin/guldencoin-official,nlgcoin/guldencoin-official,nlgcoin/guldencoin-official,nlgcoin/guldencoin-official