Tests improvements: make sure examples compile, do not link into shared library in sahred library tests, more tests