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.
Merge pull request #3 from xantares/patch-2

Use BUILD_SHARED_LIBS