cmake: fix openssl linking error

CMake openssl module sets OPENSSL_LIBRARIES and vishnu build system
use at various place OPENSSL_LIB instead.
FMS: cppcheck fixes

constructor initialization lists
initialize some member variables in all constructors
reduce variable scopes
minor code formatting