Use BUILD_SHARED_LIBS cmake standard.
Merge pull request #228 from xantares/shared

Use BUILD_SHARED_LIBS cmake standard.