Allow building static and shared lib in same build directory
Update documentation for shared/static building
Fix tests when only static version is build
Add static lib entry to the documentation