Use BUILD_SHARED_LIBS

The standard cmake variable BUILD_SHARED_LIBS is understood by add_library and it's thus not necessary to set LIB_TYPE.