use libc SHA512 implementation

Remove dependency on libcrypto, include hash headers in a nicer way.