Static libraries and dist/ folder

Now Makefiles have been instructed to generate a static library for
each package. These libraries will be used as building dependencies
between packages.

Signed-off-by: Raffaele Aquilone <aquiloneraf@gmail.com>