fix issue #8: compile warnings on R16B and greater

R16B and greater deprecated the crypto:sha_mac/2 function; on those
versions, use crypto:hmac/3 instead.