title: M2Crypto import fails on Mac OS X 10.10
body: <p>I have tried all possible methods to install M2Crypto on Mac OS X Yosemite.</p>
  
  <p>The following link was referred to build openssl first and then swig followed by M2Crypto: <a href="http://jonatkinson.co.uk/2008/10/09/installing-m2crypto-osx/" rel="nofollow">http://jonatkinson.co.uk/2008/10/09/installing-m2crypto-osx/</a></p>
  
  <p>The following link was used to change <code>setup.py</code> for M2Crypto to create static links for <code>libssl.a</code> and <code>libcrypto.a</code>, but this did not work either: 
  <a href="https://github.com/accessgrid/accessgrid/blame/master/packaging/mac/setup.py.m2crypto-0.17.patch" rel="nofollow">https://github.com/accessgrid/accessgrid/blame/master/packaging/mac/setup.py.m2crypto-0.17.patch</a></p>
  
  <pre><code>import M2Crypto
  Traceback (most recent call last):
    File "&lt;stdin&gt;", line 1, in &lt;module&gt;
    File "build/bdist.macosx-10.10-intel/egg/M2Crypto/__init__.py", line 22, in &lt;module&gt;
    File "build/bdist.macosx-10.10-intel/egg/M2Crypto/__m2crypto.py", line 7, in &lt;module&gt;
    File "build/bdist.macosx-10.10-intel/egg/M2Crypto/__m2crypto.py", line 6, in __bootstrap__
  ImportError: dlopen(/Users/user/.python-eggs/M2Crypto-0.22.3-py2.7-macosx-10.10-intel.egg-tmp/M2Crypto/__m2crypto.so, 2): Symbol not found: _X509_free
    Referenced from: /Users/user/.python-eggs/M2Crypto-0.22.3-py2.7-macosx-10.10-intel.egg-tmp/M2Crypto/__m2crypto.so
    Expected in: flat namespace
   in /Users/user/.python-eggs/M2Crypto-0.22.3-py2.7-macosx-10.10-intel.egg-tmp/M2Crypto/__m2crypto.so
  </code></pre>