Build shared library on all desktop platforms
Add OS dependent configuration for desktop target