Allow building python with shared libraries.
Merge pull request #113 from hashdist/johannr/python-enable-shared

Allow building python with shared libraries