fix memory leak in CKey::SetCompactSignature()
Fix memory leak on exception in Key::SignCompact
Explictly cast calculation to int, to allow std::max to work.
Merge pull request #2695 from robbak/init_cpp-explicit_cast

Explictly cast calculation to int, to allow std::min to work.
Merge pull request #2713 from sipa/zerodotnine

Prepare for 0.9 merge window
Merge pull request #2671 from bytemaster/master

Fix Memory Leak
Make CPubKey statically allocated
CSecret/CKey -> CKey/CPubKey split/refactor
Make signature cache store CPubKeys