Avoid duplicate lib build and fix two warnings
The first one is a build time warning while the other one is a critical raised at runtime when opening the details dialog and avoids the duplicate lib build.
The first one is a build time warning while the other one is a critical raised at runtime when opening the details dialog and avoids the duplicate lib build.