Various fixes: openssl & cmake, machine id checks client side

Various fixes:
* use openssl CMake module in build system
* fixes machine Id checks in TMS clients (improvements: use dispatcher when available)