Heartbeat test

Fix for heartbeat_test compile failure when -DOPENSSL_NO_HEARTBEATS is defined. Problem reported on 2014-05-22 by Lukas Tribus on openssl-dev. Ported to OpenSSL_1_0_1-stable and OpenSSL_1_0_2-stable as well.