better support for PR 12964. not sure if it is a complete fix.
to override functions in libcryto_*, it is easier to supply non-shared libcrypto_*.
will not be built in default. PR10883.