Revert "fix detection of modules (fix enesim.pc with static modules)"

This reverts commit 8aff42cdd97ac3bfdfbdc3762851a5c5c267d826.
Include the dependencies for static modules

Update the common project and be sure to include the
libraries for pc files and private libs in case the
modules are built statically