Merge changes from topic "no_staticlinking_to_stubs"

* changes:
  Move libstatssocket to shared.
  Make libstatssocket shared