momentum.cpp multithreading fixes, OpenSSL replaced with CryptoPP