Use BUILD_SHARED_LIBS var
Merge pull request #15 from xantares/build-shared-libs-option

Use BUILD_SHARED_LIBS var