Fixed donation code, upgraded to code base c++14

Fixed Donation code. it no longer donates on orphaned staked blocks.
code base upgraded to c++14