Use ERR_get_error to get last SSL error in openssl.d

Getting last error should return an error code which  is easier to understand
when tranlated into a error string
Merge pull request #796 from cifvts/ssl_better_error

Use ERR_get_error to get last SSL error in openssl.d