Adds a new cmake configuration variable to add -ldl when openssl libs are linked as static when crosscompiling and libraries are in separated install dirs