Made link type configurable and default to SHARED

Status Job ID Name Coverage
  Test
passed #3168
Linux
clang-c++11-debug

00:00:14

passed #3170
Linux
clang-c++11-release

00:00:16

passed #3167
Linux
gcc-c++11-debug

00:00:16

passed #3169
Linux
gcc-c++11-release

00:00:20