Make all test programs depend on libcrypto, libssl

This is probably a little paranoid, but makes sure that the libraries are
completely finished building before any test programs begin to build, which
needs to be the case for successful parallel Make executions.
Ensure ARX is set for libcrypto.a directly

Since the test programs depend on libcrypto.a, not on all_crypto, ARX needs
to be set directly for the library target. This ensures that an invocation
like 'make -j test/test_heartbeat' successfully builds from scratch without
running a regular 'make' beforehand.