fixes parallel build and linking to dynamic libcrypto of c_rehash in case openssl-dev is not installed.