Improve libcrypto detection

Closes #23.