Add posibility to build as a shared library.
Set up demo projects.