Fixed shared library build, Python bindings now compile.

Shared library build is required for Python build and is enabled by default.