Adding a NAME_LIBRARY_TYPE parameter

Adding a NAME_LIBRARY_TYPE parameter in order to choose between STATIC and SHARED library types