fix mis-detectin of libcrypto when testing for md5 presence, allow --enable-intf-X=static to also work for compatibility reasons