Link with libcrypto for BN_* functions.

Fixes #6