Fixed incompatibility of link=shared together with runtime-link=static
Fix dummyserver linkage with odtone libraries