crypto: fix build with gcrypt enabled