first pass at making mac compatabile
Merge pull request #1 from dknecht/master

Added partial compatibility with Mac where OpenSSL is deprecated.