Updated build system to generate correct libs for the modules and lib dirs and dependencies for the modules into the package config file