fix bug when enable mysql need libcrypto

fix bug when enable mysql need libcrypto