Merge pull request #4017 from changnet/master

option to build shared library,defeault off