Added an OPTION to build a SHARED library that can be referenced from Python