merge in some monetas work for cmake
first work to port to opentxs lib