fix crash for unsupported Encryption on OS X
Merge pull request #38 from yiyuanlu/master

fix crash for unsupported Encryption on OS X