Support changing lib type through BUILD_SHARED_LIBS
Merge pull request #19 from TimothyGu/lib

Support changing lib type through BUILD_SHARED_LIBS